import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

/// 探鸽公共文件 - 错误反馈文件
class SnackTips {
  SnackTips._();

  static void show(BuildContext context, String message, {Duration duration = const Duration(seconds: 2)}) {
    if (!context.mounted) return;

    final snackBar = SnackBar(
      content: Text(message),
      duration: duration,
    );

    ScaffoldMessenger.of(context).showSnackBar(snackBar);
  }
}
